module IncentivesHelper 
  def image_for(incentive, size = nil) 
    if incentive.incentive_image 
      image = incentive.incentive_image.public_filename(size) 
      image_tag(image) 
    else 
      image_tag("missing-image-#{size}.png") 
    end 
  end 
end 
